﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Messhall.UI.ViewModel.Permission.Users
{
    public class UserListModel
    {
        /// <summary>
        ///
        /// </summary>
        [Display(Name = "主键")]
        [AutoGenerateColumn(Ignore = true)]
        public int Id { get; set; }

        /// <summary>
        ///姓名
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        [AutoGenerateColumn(Order = 10, Filterable = true, Searchable = true)]
        [Display(Name = "姓名")]
        public string Name { get; set; }

        /// <summary>
        ///用户编号
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        [AutoGenerateColumn(Order = 20, Filterable = true, Searchable = true)]
        [Display(Name = "用户编号")]
        public string AccountNo { get; set; }

        /// <summary>
        ///手机号
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        [AutoGenerateColumn(Order = 30, Filterable = true, Searchable = true)]
        [Display(Name = "手机号")]
        public string Mobile { get; set; }

        /// <summary>
        ///余额
        /// </summary>
        [AutoGenerateColumn(Order = 40)]
        [Display(Name = "余额")]
        public decimal Money { get; set; }

        /// <summary>
        ///是否是VIP
        /// </summary>
        [AutoGenerateColumn(Order = 50)]
        [Display(Name = "是否是VIP")]
        public bool IsVip { get; set; }

        /// <summary>
        ///积分
        /// </summary>
        [Display(Name = "积分")]
        [AutoGenerateColumn(Order = 60, Sortable = true)]
        public int Integral { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [AutoGenerateColumn(Order = 70)]
        public DateTime CreateTime { get; set; }

        /// <summary>
        ///是否有效
        /// </summary>
        [Display(Name = "是否有效")]
        [AutoGenerateColumn(Order = 80)]
        public bool IsDelete { get; set; }
    }
}
